import dom, { ajax } from "../../init.js";
import { obj } from "../../index.js";
import event, { login, registry } from "./eventhandle.js";

dom.user.mubu.addEventListener('wheel', event.mubuscroll)
dom.user.mubu.addEventListener('scroll', event.mubuscroll)

//会触发显示/关闭登录注册的dom
dom.user.mubu.addEventListener('click', event.mubucheblock)//单击幕布
dom.user.mubuevent.islogin.onclick = event.mubucheblock//单击头部右侧登录按钮

//切换登录注册
dom.user.registry.onclick = event.cheLoginRegistry

//优化获取焦点
dom.user.mubuevent.nickNamemodule.onclick = event.nicknamefocus
dom.user.mubuevent.namemodule.onclick = event.namefocus
dom.user.mubuevent.pwdmodule.onclick = event.pwdfocus

//登录注册重置按钮
dom.user.mubuevent.loginbtn.onclick = login
dom.user.mubuevent.registrybtn.onclick = registry
dom.user.mubuevent.chongzhi.onclick = event.chongzhi

//注册验证
dom.user.mubuevent.ipt.name.onblur = event.isname
